package com.atomic.test.example.entity;

import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by DreamYao on 2017/1/24.
 */
@Entity
@Table(name = "t_board")
@EntityListeners(AuditingEntityListener.class)
public class Board extends AbstractEntity<Integer> implements Serializable {
    private static final long serialVersionUID = -4309350821355770567L;

    /**
     * 论坛版块名
     */
    @Column(name = "board_name")
    private String boardName;

    /**
     * 论坛版块描述
     */
    @Column(name = "board_desc")
    private String boardDesc;

    /**
     * 帖子数目
     */
    @Column(name = "topic_num")
    private Integer topicNum;

    public String getBoardName() {
        return boardName;
    }

    public void setBoardName(String boardName) {
        this.boardName = boardName;
    }

    public String getBoardDesc() {
        return boardDesc;
    }

    public void setBoardDesc(String boardDesc) {
        this.boardDesc = boardDesc;
    }

    public Integer getTopicNum() {
        return topicNum;
    }

    public void setTopicNum(Integer topicNum) {
        this.topicNum = topicNum;
    }
}
